package com.umeng.analytics.pro;

import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.security.KeyManagementException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.UnrecoverableKeyException;

import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;

import org.apache.http.conn.ssl.SSLSocketFactory;

class bb extends SSLSocketFactory {
    SSLContext a;

    public bb(KeyStore arg6) throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException {
        super(arg6);
        this.a = SSLContext.getInstance("TLS");
        try {
            this.a.init(null, new TrustManager[]{new ao() {
            }}, null);
        } catch (Throwable v0) {
        }
    }

    public Socket createSocket() throws IOException {
        return this.a.getSocketFactory().createSocket();
    }

    public Socket createSocket(Socket arg2, String arg3, int arg4, boolean arg5) throws IOException, UnknownHostException {
        return this.a.getSocketFactory().createSocket(arg2, arg3, arg4, arg5);
    }
}

